<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\BaseController;
use App\Models\Config;
use Illuminate\Http\Request;

class ConfigController extends BaseController
{

   public function pv(Request $request) {
        $this->validate($request, [
            'page' => 'required',
        ]);
        $page = $request->input('page');
        Config::where('key', $page)->increment('value');
        return $this->success([]);
   }

}

